package operation;

import book.Book;
import book.BookList;

public class QuitOperation implements IOperation{
    @Override
    public void work(BookList book) {
        System.out.println("退出系统!");

        int size = book.getUsedSize();

        for(int i = 0; i < size; i++){
           book.setBooks(i, null);
        }
        book.setUsedSize(0);

        System.exit(0);
    }
}
